package com.sale.goods.dubbo;

import com.sale.goods.api.RemoteGoodsIncomeService;
import com.sale.goods.api.dto.ImparityGoodsDto;
import com.sale.goods.api.vo.GetDataByCodeGoodsVo;
import com.sale.goods.service.IGoodsIncomeService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 其他付款单dubbo服务
 */
@RequiredArgsConstructor
@DubboService
@Service
public class RemoteGoodsIncomeServiceImpl implements RemoteGoodsIncomeService {

    @Resource
    IGoodsIncomeService goodsIncomeService;

    /**
     * 财务-核销单 通过获取未全部核销的其他收入单数据
     */
    @Override
    public List<ImparityGoodsDto> getNoVerificationList(GetDataByCodeGoodsVo getDataByCodeVo) {
        return goodsIncomeService.getNoVerificationList(getDataByCodeVo);
    }
}
